<%@ page import="java.util.*" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: zhangyiyi
  Date: 2025/3/3
  Time: 9:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    request.setAttribute("date",new Date());
%>
显示中文日期时间：
<fmt:setLocale value="zh_CN"/>
<fmt:formatDate value="${date}"/>
<br>
显示英文日期时间：
<fmt:setLocale value="en_US"/>
<fmt:formatDate value="${date}"/>
</body>
</html>
